package demo;
//Day07
public class Day06002 {
    public static void main(String[] args) {
        int[] arr={68,27,95,88,171,996,51,210};
        int addNum=0;
        for(int i=0;i<8;i++){
            if(arr[i]%2==0&&arr[i]%10!=7&&(arr[i]/10)%10!=7)
                addNum+=arr[i];
        }
        System.out.println(addNum);
    }
}
